package org.jeecg.entity.meter;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.modules.system.entity.BaseEntity;

/**
 * @Description: 仪表通断记录表
 * @Author: liurui
 * @Date:   2020-11-20
 * @Version: V1.0
 */
@Data
@TableName("meter_control_switch")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="meter_control_switch对象", description="仪表通断记录表")
public class MeterControlSwitch extends BaseEntity  {
    
	/**回调结果*/
	@Excel(name = "回调结果", width = 15)
    @ApiModelProperty(value = "回调结果")
	private String callbackRes;
	/**回调时间*/
	@Excel(name = "回调时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "回调时间")
	private Date callbackTime;
	/**控制指令*/
	@Excel(name = "控制指令", width = 15)
    @ApiModelProperty(value = "控制指令")
	private String command;
	/**控制类型（1：通断状态   2：通断模式）*/
	@Excel(name = "控制类型（1：通断状态   2：通断模式）", width = 15)
    @ApiModelProperty(value = "控制类型（1：通断状态   2：通断模式）")
	private Integer controlType;
	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	/**回调状态(0:未回调 1：已回调)*/
	@Excel(name = "回调状态(0:未回调 1：已回调)", width = 15)
    @ApiModelProperty(value = "回调状态(0:未回调 1：已回调)")
	private Integer isCallback;
	/**设备网关*/
	@Excel(name = "设备网关", width = 15)
    @ApiModelProperty(value = "设备网关")
	private String meterGateway;
	/**仪表id*/
	@Excel(name = "仪表id", width = 15)
    @ApiModelProperty(value = "仪表id")
	private String meterId;
	/**仪表编号*/
	@Excel(name = "仪表编号", width = 15)
    @ApiModelProperty(value = "仪表编号")
	private String meterCode;
	/**请求参数信息*/
	@Excel(name = "请求参数信息", width = 15)
    @ApiModelProperty(value = "请求参数信息")
	private String request;
	/**请求时间*/
	@Excel(name = "请求时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "请求时间")
	private Date requestTime;
	/**响应信息*/
	@Excel(name = "响应信息", width = 15)
    @ApiModelProperty(value = "响应信息")
	private String response;
	/**响应时间*/
	@Excel(name = "响应时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "响应时间")
	private Date responseTime;
	private String tenantId;
}
